package atag.common;

import atag.runtime.DataItem;
import atag.runtime.DataPool;
import atag.runtime.NodeInfo;

/**
 *
 * @author chhatwal
 */
public abstract class ATaGAppTask implements Runnable{

    private NodeInfo m_myState;   
    
    protected ATaGAppTask(NodeInfo myconfig) {     
        m_myState = myconfig;
    }

    public void debugPrint(String msg) {
        m_myState.debugPrint(msg);
    }
    
    public String getRegionLabel() {
        return m_myState.getRegionLabel();
    }
    
    public int getRegionID() {
        return ((Integer)m_myState.getAttributeByName(getRegionLabel())).intValue();
    }        
    
    
}
